import request from '@/utils/request'

/**
 * 文件上传
 *
 * @param appBookInfo
 * @return
 */
export function upload(data) {
  return request({
    url: '/file/upload',
    method: 'post',
    timeout: 1000000,
    data,
    headers:{'Content-Type':'multipart/form-data'}
  })
}



/**
 * 导入书籍
 *
 * @param appBookInfo
 * @return
 */
export function importCheck(data) {
  return request({
    url: '/chapter/importCheck',
    method: 'post',
    timeout: 1000000,
    data,
    headers:{'Content-Type':'multipart/form-data'}
  })
}
